﻿//
// MainPage.xaml.h
// Declaration of the MainPage class.
//

#pragma once

#include "MainPage.g.h"

namespace SimpleAudioPlayer
{
	/// <summary>
	/// An empty page that can be used on its own or navigated to within a Frame.
	/// </summary>
	public ref class MainPage sealed
	{
	public:
		MainPage();

	private:
		Windows::Media::SystemMediaTransportControls^ systemControls;

		void OnSelected(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
		void OnStop(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
		void OnPause(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
		void OnPlay(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);

		void OnButtonPressed(Windows::Media::SystemMediaTransportControls^ sender,
			Windows::Media::SystemMediaTransportControlsButtonPressedEventArgs^ e);
		void MusicChanged(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
	};
}
